import request from '@/utils/request'

// 查询工作面信息列表
export function listWorkfaceInfo(query) {
  return request({
    url: '/dispatch/workfaceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询工作面信息详细
export function getWorkfaceInfo(workfaceId) {
  return request({
    url: '/dispatch/workfaceInfo/' + workfaceId,
    method: 'get'
  })
}

// 新增工作面信息
export function addWorkfaceInfo(data) {
  return request({
    url: '/dispatch/workfaceInfo',
    method: 'post',
    data: data
  })
}

// 修改工作面信息
export function updateWorkfaceInfo(data) {
  return request({
    url: '/dispatch/workfaceInfo',
    method: 'put',
    data: data
  })
}

// 删除工作面信息
export function delWorkfaceInfo(workfaceId) {
  return request({
    url: '/dispatch/workfaceInfo/' + workfaceId,
    method: 'delete'
  })
}
